#pragma once

#include <string>

#include "torrent/fwd_decl.hpp"

namespace torrent {	

class Bdecoder
{
public:
	Bdecoder();
	~Bdecoder();
	
	MetaInfo read(const std::string& filename, const std::string& logname);
	void dump();

private:
	void clearNode();

private:
	be_node* _node;
};

}
